<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css"
          rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <h1>UserList</h1>
    <div id="app">
<!--        <table>-->
<!--            <th>ID</th><th>name</th><th>email</th>-->
<!--            <tr v-for="user in info">-->
<!--                <td>{{user.id}}</td>-->
<!--                <td>{{user.name}}</td>-->
<!--                <td>{{user.email}}</td>-->
<!--            </tr>-->
<!--        </table>-->
        <table class="table">
            <th scope="col">ID</th><th scope="col">name</th><th scope="col">email</th>
            <tr v-for="user in info">
                <td >{{user.id}}</td>
                <td>{{user.username}}</td>
                <td>{{user.email}}</td>
            </tr>
        </table>
    </div>

    <script>
        new Vue({
            el: '#app',
            data () {
                return {
                    info: null
                }
            },
            mounted () {
                axios
                    .post('/user/rest/list')
                    .then(response => (this.info = response.data))
            }
        })
    </script>
</body>
</html>